//
//  SEGPictorialDetailAdListModel.m
//  ExcellentHome
//
//  Created by Sam on 16/8/24.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import "SEGPictorialDetailAdListModel.h"

@implementation SEGPictorialDetailAdListModel
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    id obj = [[self alloc] init];
    [obj setValuesForKeysWithDictionary:dictionary];
    return obj;
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
}

- (void)encodeWithCoder:(NSCoder*)encoder
{
    [encoder encodeObject:self.advertisingId forKey:@"advertisingId"];
    [encoder encodeObject:self.type forKey:@"type"];
    [encoder encodeObject:self.title forKey:@"title"];
    [encoder encodeObject:self.href forKey:@"href"];
    [encoder encodeObject:self.pic forKey:@"pic"];
    [encoder encodeObject:self.position forKey:@"position"];
    [encoder encodeObject:self.typeId forKey:@"typeId"];
    [encoder encodeObject:self.updateTime forKey:@"updateTime"];
    [encoder encodeObject:self.runingSecond forKey:@"runingSecond"];
}
- (id)initWithCoder:(NSCoder*)decoder
{
    self.advertisingId = [decoder decodeObjectForKey:@"advertisingId"];
    self.type = [decoder decodeObjectForKey:@"type"];
    self.title = [decoder decodeObjectForKey:@"title"];
    self.href = [decoder decodeObjectForKey:@"href"];
    self.pic = [decoder decodeObjectForKey:@"pic"];
    self.position = [decoder decodeObjectForKey:@"position"];
    self.typeId = [decoder decodeObjectForKey:@"typeId"];
    self.updateTime = [decoder decodeObjectForKey:@"updateTime"];
    self.runingSecond = [decoder decodeObjectForKey:@"runingSecond"];
    return self;
}
@end
